home *** CD-ROM | disk | FTP | other *** search
- *** /111/src/gcc-263/gcc.c Mon Nov 7 16:01:42 1994
- --- gcc.c Sat Dec 17 20:35:04 1994
- ***************
- *** 51,56 ****
- --- 51,61 ----
- #endif
- #include <stdio.h>
-
- + /* BEGIN BORLAND-SPECIFIC CODE */
- + unsigned _heaplen = 20000;
- + unsigned _stklen = 4096;
- + /* END BORLAND-SPECIFIC CODE */
- +
- /* Include multi-lib information. */
- #include "multilib.h"
-
- ***************
- *** 1944,1950 ****
-
- #ifdef __MSDOS__
-
- ! #include <process.h>
- static int
- pexecute (search_flag, program, argv, not_last)
- int search_flag;
- --- 1949,1958 ----
-
- #ifdef __MSDOS__
-
- ! /* Declare these to avoid compilation error. They won't be called. */
- ! int execv(const char *a, const char **b){}
- ! int execvp(const char *a, const char **b){}
- !
- static int
- pexecute (search_flag, program, argv, not_last)
- int search_flag;
- ***************
- *** 1983,1995 ****
- i = system (scmd);
-
- remove (rf);
- ! #endif
- !
- if (i == -1)
- {
- perror_exec (program);
- return MIN_FATAL_STATUS << 8;
- }
- return i << 8;
- }
-
- --- 1991,2003 ----
- i = system (scmd);
-
- remove (rf);
- ! #endif
- if (i == -1)
- {
- perror_exec (program);
- return MIN_FATAL_STATUS << 8;
- }
- +
- return i << 8;
- }
-
- ***************
- *** 4195,4200 ****
- --- 4203,4220 ----
- char *explicit_link_files;
- char *specs_file;
- char *p;
- +
- + /* BEGIN TURBO-C-SPECIFIC CODE */
- + char cmdl[128];
- + char far *cmdlf = ((void far *)(((unsigned long)_psp << 16) | 128));
- + for (i=0; i<128; i++)
- + cmdl[i] = cmdlf[i];
- + cmdl[cmdl[0]+1] = 0;
- + __glob_args(cmdl+1, argv[0], 1);
- + __glob_env(__glob_argv[0]);
- + argc = __glob_argc;
- + argv = __glob_argv;
- + /* END TURBO-C-SPECIFIC CODE */
-
- p = argv[0] + strlen (argv[0]);
- while (p != argv[0] && p[-1] != '/' && p[-1] != DIR_SEPARATOR) --p;
-